﻿using System;

namespace Rotate旋转矩阵
{
    class Program
    {

        static void Main(string[] args)
        {

            var matrix = new int[3][]
            {
               new int[] { 1,2,3},
               new int[] { 4,5,6},
               new int[] { 7,8,9}
            };

            new Solution().Rotate(matrix);

        }
    }



    public class Solution
    {
        public void Rotate(int[][] matrix)
        {


            foreach (var item in matrix)
            {
                foreach (var value in item)
                {
                    Console.WriteLine(value);

                }
            }

        }
    }
}
